package com.emellend.api.t;

import com.emellend.api.R;

import android.app.TabActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;
import android.widget.TabHost.TabContentFactory;
import android.widget.TextView;

public class Tab extends TabActivity implements TabContentFactory {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tabs_scroll);
		final TabHost host=getTabHost();
		for(int i=0;i<30;i++){
			String name="Tab "+i;
			host.addTab(host.newTabSpec(name).setIndicator(name).setContent(this));
		}
	}
	public View createTabContent(String tag) {
		final TextView tv = new TextView(this);
        tv.setText("Content for tab with tag " + tag);
        return tv;
	}

}
